<%--
  Date: 2024/10/10 14:09
  Description:   域对象的作用域
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>域对象的作用域</h2>

<%--
  session作用域中的值可以正常获取   浏览器  服务器之间  会话保持机制
  chrome    el2.jsp  http请求    无状态请求协议
  ie        el2.jsp  http请求

  会话保持机制     /student/add
     cookie
        JSESSIONID :  15DA81AB6BD671BD8AF0ECBEEF6606D4
        session  sessionId: 15DA81AB6BD671BD8AF0ECBEEF6606D4

--%>
<hr>
<h3>pageContext = ${pctx}</h3>
<h3>request = ${rqst}</h3>
<h3>session = ${sson}</h3>
<h3>application = ${app}</h3>

<%--
   D842FE5129D7455F8612C012439D0A71
--%>
<%
  String id = session.getId();
%>

<h1><%=id%></h1>

</body>
</html>
